{% extends 'base/base.html'%}

{% block title %}
<title>笔记详情</title>
{% endblock title %}
<!-- 面包屑 -->
{% block breadcrumb %}
<li class="breadcrumb-item"><a href="{% url 'index'%}">Home</a></li>
<li class="breadcrumb-item"><a href="#">笔记详情</a></li>
{% endblock breadcrumb %}
{% block content %}
<div class="card">
    <div class="card-header">
      {% if note_obj.user.username %}
        {{note_obj.user.username}}的笔记
      {% else %}
        佚名的笔记
      {% endif %}
    </div>
    <div class="card-body">
      <h5 class="card-title">{{note_obj.title}}</h5>
      <p class="card-text">{{note_obj.content | safe}}</p>
      <!-- <a href="#" class="btn btn-primary">点赞</a> -->
      <footer class="blockquote-footer">创建时间 <cite title="Source Title">{{note_obj.update_time}}</cite></footer>
    </div>
    <div class="card-footer text-muted">
        更新于:{{note_obj.create_time}} 
    </div>
  </div>
{% endblock content %}
